package com.learning.server.thread;

import java.util.concurrent.locks.ReentrantLock;
import java.util.concurrent.locks.ReentrantReadWriteLock;

public class ReentrantLockDemo {

    static ReentrantLock lock = new ReentrantLock();
    static ReentrantReadWriteLock locl2 = new ReentrantReadWriteLock();

    public static void main(String[] args) {
        lock.lock();
        locl2.writeLock();
    }
}
